﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xinkui.WebModel.Cache.View;
using Xinkui.WebModel.Cache;
using CommonFramework.Utility;


namespace Xinkui.WebModel.BasicClass
{
    /// <summary>
    /// 展示厅 页面基类
    /// </summary>
    public abstract class ShowRoomPageBase : PageBase
    {


        public int ShowRoomIdentity
        {
            get
            {
                return WebHelper.GetQueryStringValue<int>("com", 0);
            }
        }

        public abstract ShowRoomNavEnum NavPoint { get; }

        protected override void OnInitComplete(EventArgs e)
        {
            base.OnInitComplete(e);
            CompanyView = CompanyInfoCache.View(ShowRoomIdentity);
        }

        public CompanyInfoView CompanyView
        {
            get;
            private set;
        }
    }
}
